public class ComputerDirector {
    private ComputerBuilder builder ;
    public ComputerDirector(ComputerBuilder concreteBuilder){
        this.builder = concreteBuilder;
    }

    public ProductComputer constructComputer(){
        this.builder.buildCPU();
        this.builder.buildRAM();
        this.builder.buildDisk();
        return  this.builder.getComputerProduct();
    }

    public void setBuilder(ComputerBuilder builder) {
        this.builder = builder;
    }
}
